import {ref} from "vue";

export default function (){
    const mouseX = ref(0);
    const mouseY = ref(0);
    //监听滚动
    window.document.addEventListener("mousemove",(event) => {
        mouseX.value = event.pageX;
        mouseY.value = event.pageY;
    })

    return{
        mouseX,
        mouseY
    }
}